import {defineStore} from "pinia";
import {ref} from "vue";

export const uploadStore = defineStore('uploadStore;', () => {

    const  loadingLen = ref(0)
    const  loadingShow = ref(false)

    const setLoadLen = (n , all) =>{
        loadingLen.value = n/all * 100
    }


    return {loadingLen,loadingShow, setLoadLen}
})
